import 'package:appscheme/appscheme.dart';
import 'package:get/get.dart';
import 'package:logger/logger.dart';

class SchemeService extends GetxService{
  AppSchemeImpl? scheme;

  Future<SchemeService> init() async {
    return this;
  }

  @override
  void onInit() {
    scheme = AppSchemeImpl.getInstance();
    super.onInit();
  }

  initScheme(){
    scheme?.getLatestScheme().then(
      (value) {
        Logger().d(value);
      });
    scheme?.registerSchemeListener().listen((event) {
      Logger().d(event);
    });
  }
}